home *** CD-ROM | disk | FTP | other *** search
/ PC go! 2008 April / PCgo 2008-04 (DVD).iso / interface / contents / demoversionen_3846 / 13664 / files / Data1.cab / splpage.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-16  |  1.9 KB  |  62 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*                      TurboCAD for Windows                      */
  4. /*                   Copyright (c) 1993 - 2001                    */
  5. /*             International Microcomputer Software, Inc.         */
  6. /*                            (IMSI)                              */
  7. /*                      All rights reserved.                      */
  8. /*                                                                */
  9. /******************************************************************/
  10.  
  11. // SplPage.cpp : implementation file
  12. //
  13.  
  14. #include "stdafx.h"
  15. #include "MfcSplin.h"
  16. #include "SplPage.h"
  17.  
  18. #ifdef _DEBUG
  19. #define new DEBUG_NEW
  20. #undef THIS_FILE
  21. static char THIS_FILE[] = __FILE__;
  22. #endif
  23.  
  24. /////////////////////////////////////////////////////////////////////////////
  25. // CSplinePage dialog
  26.  
  27.  
  28. CSplinePage::CSplinePage(CWnd* pParent /*=NULL*/)
  29.     : CDialog(CSplinePage::IDD, pParent)
  30. {
  31.     //{{AFX_DATA_INIT(CSplinePage)
  32.     m_nSegments = 0;
  33.     m_bControlPoints = FALSE;
  34.     m_bFrame = FALSE;
  35.     m_bSmoothing = FALSE;
  36.     //}}AFX_DATA_INIT
  37. }
  38.  
  39.  
  40. void CSplinePage::DoDataExchange(CDataExchange* pDX)
  41. {
  42.     CDialog::DoDataExchange(pDX);
  43.     //{{AFX_DATA_MAP(CSplinePage)
  44.     DDX_Text(pDX, IDC_SEGMENTS, m_nSegments);
  45. // set limit for number of segments in the spline object
  46.     DDV_MinMaxUInt(pDX, m_nSegments, 1, 200);
  47.     DDX_Check(pDX, IDC_SHOW_CONTROL_POINTS, m_bControlPoints);
  48.     DDX_Check(pDX, IDC_SHOW_FRAME, m_bFrame);
  49.     DDX_Check(pDX, IDC_SMOOTHING, m_bSmoothing);
  50.     //}}AFX_DATA_MAP
  51. }
  52.  
  53.  
  54. BEGIN_MESSAGE_MAP(CSplinePage, CDialog)
  55.     //{{AFX_MSG_MAP(CSplinePage)
  56.         // NOTE: the ClassWizard will add message map macros here
  57.     //}}AFX_MSG_MAP
  58. END_MESSAGE_MAP()
  59.  
  60. /////////////////////////////////////////////////////////////////////////////
  61. // CSplinePage message handlers
  62.